import config from '@/config'
import RequestBase from '@/utils/request.js'

const baseRequest = new RequestBase(config.equipment)

/** 获取值班 */
export function list(params) {
  return baseRequest.get(`/dfm/duty-matters/list`, params)
}

/** 新增 */
export function add(data) {
  return baseRequest.post(`/dfm/duty-matters`, data)
}

/** 获取详情 */
export function detail(matterId) {
  return baseRequest.get(`/dfm/duty-matters/${matterId}`)
}
